import Vue from 'vue'
import App from './App.vue'
import router from './router'
import '@/styles/base.less'
import '@/utils/vant'
import 'amfe-flexible'
import store from '@/store/index'
import moment from 'moment'
// import JSONbigInt from 'json-bigint'
moment.locale('zh-cn')

Vue.filter('fromNow', input => {
  return moment(input).fromNow()
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

// 大数问题的处理
// const json = '{"id":123245234253134134123,"name":"张三"}'
// console.log(JSONbigInt.parse(json).id)
// console.log(JSON.parse(json))
